package day6;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr4 {
    public static void main(String[] args) {
        int []ar={1,2,22,55,23,14,233,6,66,145,10,7};
        Scanner in=new Scanner(System.in);
        System.out.println("请输入要查找的数：");
        int k=in.nextInt();
        boolean zai=false;//假定不在！
        int i=0;
        for(;i<ar.length;i++){
            if(ar[i]==k){
                break;
            }
        }
        if(i>=ar.length){
            System.out.println("不在！");
        }else{
            System.out.println("在");
        }
    }
}
